package com.qf.gitadmin.user.controller;

import com.qf.entity.User;
import com.qf.gitadmin.user.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ---厚德载物---
 * Author fei
 * Date(2024/10/8)
 * Desc 希望我们都能遇到真诚的人
 * 一生要强的男人,我用双手成就你的梦想
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @GetMapping("/login")
    public User login(String username,String password) throws Exception {
        User login = userService.login(username, password);
        return login;
    }
}
